package cn.hinglo.gameclaw.user.bean;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @createTime: 2017/12/29
 * @author: HingLo
 * @description: 菜单下的娃娃管理
 */
@Data
@Accessors(chain = true)
@Table(name = "menu_claw")
public class MenuClaw implements Serializable {
    @Id
    private Long id;

    /**
     * 娃娃机的ID
     */
    @NotNull(message = "娃娃机编号不能为不能为空")
    private Integer cid;

    /**
     * 菜单的id
     */
    @NotNull(message = "菜单不能为空")
    private String mid;
    /**
     * 创建时间
     */
    private Date date;
    /**
     * 人工权重值
     */
    private Integer sort;
    /**
     * 结束时间
     */
    private Date edate;


}
